package com.ebs.magicapidemo.controller;

import com.ebs.magicapidemo.result.ResultResponse;
import com.ebs.magicapidemo.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author Alexander Chang
 * @since 2023-01-10
 */
@RestController
@RequestMapping("user")
public class UserController {
    @Autowired
    private UserService userService;

    @GetMapping("getUserList")
    public ResultResponse getUserList() {
        return userService.getUserList();
    }
}
